#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

typedef struct BTNode
{
	struct BTNode* left;
	struct BTNode* right;
	int x;
}BTNode;

BTNode* BinaryTreeFind(BTNode* root, int x)
{
	if (root == NULL)
		return NULL;
	if (root->x == x)
		return root;

	BTNode* lret = BinaryTreeFind(root->left, x);
	if (lret)
		return lret;
	BTNode* rret = BinaryTreeFind(root->right, x);
	if (rret)
		return rret;

	return NULL;
}